﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseSet.Data;
using BaseSet.Logic;
using BaseSet.Entity;
using BaseSet.Framework;
using BaseSet.Entity.Common;
using BaseSet.Entity.Common.Text;
using BaseSet;
using System.Data;

namespace WebSite.Ajax
{
    public partial class CheckEmail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string email = Request.QueryString["email"] + "";
            //判断邮箱是否已经存在

            UsersHelper uhelper = new UsersHelper();
            Criteria c = new Criteria();
            c.Add(CriteriaType.Equals, "Email", email);

            List<Users> ulist = uhelper.QueryUsersBySearch(c, null);
            if (ulist != null && ulist.Count > 0)
            {
                Response.Write("repeat");
                return;
            }
            else
            {
                Response.Write("normal");
                return;
            }
        }
    }
}